﻿namespace MRMDS.Module
{
    public class Command
    {
        public string Type { get; set; }
        public Dictionary<string, object> Args { get; set; }

        public Command(string type)
        {
            Type = type;
            Args = new Dictionary<string, object>();
        }

        public static Command CreatMoveCommand(Position startPosition, Position targetPosition, string operatorUUID)
        {
            Command moveC = new Command("Move");
            moveC.Args.Add("StartPosition", startPosition);
            moveC.Args.Add("TargetPosition", targetPosition);
            moveC.Args.Add("OperatorUUID", operatorUUID);
            return moveC;
        }

        public static Command CreatStopCommand()
        {
            return new Command("Stop");
        }

    }
}